<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/15 0015
 * Time: 下午 4:39
 */

namespace app\index\controller;


use app\common\model\Msg;

class Test
{
   function index($device_id=0,$msg=0){
       if($device_id){
           Msg::create([
               "device_id"=>$device_id,
               "push_msg"=>$msg,
           ]);
       }
       return $msg;
   }
}